const routerDataSource = [
  {
    id: "1",
    name: "Index",
    title: "首页",
    icon: "iconfont icon-shouye",
    path: "/indexs/index",
    perm: "indexs:index:menu",
    component: () => import("@/views/indexs/index.vue")
  },
  {
    id: "2",
    name: "Users",
    title: "用户管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "users:user:folder",
    children: [
      {
        id: "21",
        name: "Permission",
        title: "权限管理",
        icon: "iconfont icon-yonghuming",
        path: "/users/permission",
        perm: "users:user:menu",
        component: ()=> import("@/views/users/permission.vue")
      },
      {
        id: "22",
        name: "Role",
        title: "角色管理",
        icon: "iconfont icon-yonghuming",
        path: "/users/role",
        perm: "users:role:menu",
        component: ()=> import("@/views/users/role.vue")
      },
      {
        id: "23",
        name: "User",
        title: "用户管理",
        icon: "iconfont icon-yonghuming",
        path: "/users/user",
        perm: "users:user:menu",
        component: () => import("@/views/users/user.vue")
      }
    ]
  },
  {
    id: "3",
    name: "Stores",
    title: "门店管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "stores:store:folder",
    children: [
      {
        id: "31",
        name: "Store",
        title: "门店管理",
        icon: "iconfont icon-yingjian",
        path: "/stores/store",
        perm: "stores:store:menu",
        component: () => import("@/views/stores/store.vue")
      },
      {
        id: "32",
        name: "StoreGroup",
        title: "门店组管理",
        icon: "iconfont icon-yingjian",
        path: "/stores/storeGroup",
        perm: "stores:storegroup:menu",
        component: () => import("@/views/stores/storeGroup.vue")
      }
    ]
  },
  {
    id: "4",
    name: "TeaProductions",
    title: "茶饮生产管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "teaproductions:teaproduction:folder",
    children: [
      {
        id: "41",
        name: "Recipe",
        title: "配方管理",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/recipe",
        perm: "teaproductions:recipe:menu",
        component: () => import("@/views/teaproductions/recipe.vue")
      },
      {
        id: "42",
        name: "RecipeCategory",
        title: "配方分类",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/recipeCategory",
        perm: "teaproductions:recipecategory:menu",
        component: () => import("@/views/teaproductions/recipeCategory.vue")
      },
      {
        id: "43",
        name: "RecipeMaterial",
        title: "配方物料",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/recipeMaterial",
        perm: "teaproductions:recipematerial:menu",
        component: () => import("@/views/teaproductions/recipeMaterial.vue")
      },
      {
        id: "44",
        name: "MaterialUnit",
        title: "物料单位",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/materialUnit",
        perm: "teaproductions:materialunit:menu",
        component: () => import("@/views/teaproductions/materialUnit.vue")
      },
      {
        id: "45",
        name: "MaterialType",
        title: "物料类型",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/materialType",
        perm: "teaproductions:materialtype:menu",
        component: () => import("@/views/teaproductions/materialType.vue")
      },
      {
        id: "46",
        name: "Material",
        title: "物料管理",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/material",
        perm: "teaproductions:material:menu",
        component: () => import("@/views/teaproductions/material.vue")
      },
      {
        id: "47",
        name: "MaterialPrecisionTemplate",
        title: "物料精度模版",
        icon: "iconfont icon-yingjian",
        path: "/teaproductions/materialPrecisionTemplate",
        perm: "teaproductions:materialprecisiontemplate:menu",
        component: () =>
          import("@/views/teaproductions/materialPrecisionTemplate.vue")
      }
    ]
  },
  {
    id: "5",
    name: "FoodSafetys",
    title: "设备管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "foodsafetys:foodsafetys:folder",
    children: [
      {
        id: "51",
        name: "BusinessStart",
        title: "设置营业准备",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/businessStart",
        perm: "foodsafetys:businessstart:menu",
        component: () => import("@/views/foodsafetys/businessStart.vue")
      },
      {
        id: "52",
        name: "BusinessEnd",
        title: "设置打烊规则",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/businessEnd",
        perm: "foodsafetys:businessend:menu",
        component: () => import("@/views/foodsafetys/businessEnd.vue")
      },
      {
        id: "53",
        name: "WarningRules",
        title: "设置预警规则",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/warningrules",
        perm: "foodsafetys:warningrules:menu",
        component: () => import("@/views/foodsafetys/warningrules.vue")
      },
      {
        id: "54",
        name: "SetPutMaterialRules",
        title: "设置物料使用规则",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/setPutMaterialRules",
        perm: "foodsafetys:setPutMaterialRules:menu",
        component: () => import("@/views/foodsafetys/setPutMaterialRules.vue")
      },
      {
        id: "55",
        name: "SetMaterialRules",
        title: "设置物料使用规则",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/setMaterialRules",
        perm: "foodsafetys:setMaterialRules:menu",
        component: () => import("@/views/foodsafetys/setMaterialRules.vue")
      },
      {
        id: "56",
        name: "SetCleanRules",
        title: "设置清洗规则",
        icon: "iconfont icon-yingjian",
        path: "/foodsafetys/setCleanRules",
        perm: "foodsafetys:setCleanRules:menu",
        component: () => import("@/views/foodsafetys/setCleanRules.vue")
      }
    ]
  },
  {
    id: "6",
    name: "MachineManages",
    title: "机台管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "machineManages:machineManage:folder",
    children: [
      {
        id: "61",
        name: "PreDeployment",
        title: "预部署机台",
        icon: "iconfont icon-yingjian",
        path: "/machineManages/preDeployment",
        perm: "machineManages:preDeployment:menu",
        component: () => import("@/views/machineManages/preDeployment.vue")
      },
      {
        id: "62",
        name: "DeploymentTemplate",
        title: "机台部署模版",
        icon: "iconfont icon-yingjian",
        path: "/machineManages/deploymentTemplate",
        perm: "machineManages:deploymentTemplate:menu",
        component: () => import("@/views/machineManages/deploymentTemplate.vue")
      },
      {
        id: "63",
        name: "MachineManage",
        title: "机台管理",
        icon: "iconfont icon-yingjian",
        path: "/machineManages/machineManage",
        perm: "machineManages:machineManage:menu",
        component: () => import("@/views/machineManages/machineManage.vue")
      },
      {
        id: "64",
        name: "MachineMaintain",
        title: "机台保养设置",
        icon: "iconfont icon-yingjian",
        path: "/machineManages/machineMaintain",
        perm: "machineManages:machineMaintain:menu",
        component: () => import("@/views/machineManages/machineMaintain.vue")
      }
    ]
  },
  {
    id: "7",
    name: "MessageManages",
    title: "短信管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "messageManages:messageManage:folder",
    children: [
      {
        id: "71",
        name: "MessageList",
        title: "短信管理",
        icon: "iconfont icon-yingjian",
        path: "/messageManages/messageList",
        perm: "messageManages:messageList:menu",
        component: () => import("@/views/messageManages/messageList.vue")
      },
      {
        id: "72",
        name: "VoiceList",
        title: "语音管理",
        icon: "iconfont icon-yingjian",
        path: "/messageManages/voiceList",
        perm: "messageManages:voiceList:menu",
        component: () => import("@/views/messageManages/voiceList.vue")
      }
    ]
  },
  {
    id: "8",
    name: "SystemManages",
    title: "系统管理",
    icon: "iconfont icon-fenzuguanli",
    path: "",
    perm: "systemManages:systemManage:folder",
    children: [
      {
        id: "81",
        name: "UserFeedback",
        title: "用户反馈",
        icon: "iconfont icon-yingjian",
        path: "/systemManages/userFeedback",
        perm: "systemManages:userFeedback:menu",
        component: () => import("@/views/systemManages/userFeedback.vue")
      },
      {
        id: "82",
        name: "VersionManage",
        title: "版本管理",
        icon: "iconfont icon-yingjian",
        path: "/systemManages/versionManage",
        perm: "systemManages:versionManage:menu",
        component: () => import("@/views/systemManages/versionManage.vue")
      }
    ]
  }
];
export default routerDataSource;
